package com;

import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
//        ClassPathXmlApplicationContext cac = new ClassPathXmlApplicationContext("com\\applicationContext.xml");
        FileSystemXmlApplicationContext ac = new FileSystemXmlApplicationContext("classpath:com\\applicationContext.xml");
       /* Person p = (Person) cac.getBean("person3");
        System.out.println(p);
        Japanese j = (Japanese)p;*/
//        System.out.println(j.getList().getClass());
        Person p2 = (Person) ac.getBean("person3");
        FileSystemXmlApplicationContext ac2 = new FileSystemXmlApplicationContext("classpath:com\\applicationContext1.xml");
        System.out.println(p2);
        Person p3 = (Person) ac2.getBean("person5");
        System.out.println(p3);
    }
}